//
//  BhDataBase.h
//  bh
//
//  Created by lanou on 15/12/28.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "BrowseModel.h"
@interface BhDataBase : NSObject
@property (nonatomic, strong) FMDatabase *dataBase;
@property (nonatomic, strong) BrowseModel *model;

+ (BhDataBase *)shareSqliteBh;
// 获取/指定数据库路径
- (NSString *)sqlitePaths:(NSString *)sqlitePaths;
// 打开数据库
- (void)openSqliteWithPaths:(NSString *)paths;
// 关闭数据库
- (void)closeSqlite;
// 创建一个数据库表
- (void)createSqliteTableWithName:(NSString *)name;
// 插入一条数据
- (void)insertModel:(BrowseModel *)model;
// 删除一条数据
- (void)deleteWithSingId:(NSString *)ID;
// 获取全部数据
- (NSMutableArray *)selegetAllModel;
@end
